<template>
  <div>
    <button @click="greet">Greet</button>
    <button @click="ch($event)">按钮</button>
  </div>
</template>

<script setup>
// 通过事件
const greet = (Event) => console.log(Event);
// 通过$event
const ch = (Event) => console.log(Event);
</script>

<style lang="scss" scoped></style>
